package 第七周.practice;
//Advice.java    Author:Lewis/Loftus
//Represents some thoughtful advice .Uaed to demonstrate the use
//of an overridden method.
public class Advice extends Thought{
    //Prints a mesage .This method overriddens the parent's
    //version.
    public void message()
    {
        System.out.println("Warning: Dates in calendar are closer " +
        "than they appear.");
        System.out.println();
        super.message();//explicitly invokes the parent's version.
    }
}
